package com.im.db.event;

import java.util.List;

import com.core.sdk.core.BaseEvent;
import com.core.sdk.core.Location;

public class XmppMessageRequestEvent extends BaseEvent {

	private static final long serialVersionUID = 1L;

	public enum Operate {
		loadHistory, markToReaded,unread
	}

	Operate op;
	ParamEntity param;

	public XmppMessageRequestEvent(Location to, Operate op, ParamEntity param) {
		super(to);
		this.op = op;
		this.param = param;
	}

	public Operate getOp() {
		return op;
	}

	public ParamEntity getParam() {
		return param;
	}

	public static class ParamEntity {
		private int id;
		private List<String> ids;
		private long time;
		private String otherUser;
		private long pageNo= 0;
		private long pageSize=5;

		public int getId() {
			return id;
		}

		public void setId(int id) {
			this.id = id;
		}

		public List<String> getIds() {
			return ids;
		}

		public void setIds(List<String> ids) {
			this.ids = ids;
		}

		public long getTime() {
			return time;
		}

		public void setTime(long time) {
			this.time = time;
		}

		public String getOtherUser() {
			return otherUser;
		}

		public void setOtherUser(String otherUser) {
			this.otherUser = otherUser;
		}

		public long getPageNo() {
			return pageNo;
		}

		public void setPageNo(long pageNo) {
			this.pageNo = pageNo;
		}

		public long getPageSize() {
			return pageSize;
		}

		public void setPageSize(long pageSize) {
			this.pageSize = pageSize;
		}
		
		
	}

}
